public interface CiscoIntercomAddress extends CiscoAddress
The CiscoIntercomAddress
interface extends the CiscoAddress interface with
additional Unified CM-specific capabilities for intercom addresses. This interface lets
applications initiate intercom calls and take advantage of other intercom-specific features.
CiscoAddress
APPLICATION_CONTROLLED_RECORDING, AUTO_RECORDING, AUTOACCEPT_OFF, AUTOACCEPT_ON, AUTOANSWER_OFF, AUTOANSWER_UNKNOWN, AUTOANSWER_WITHHEADSET, AUTOANSWER_WITHSPEAKERSET, DEVICE_CONTROLLED_RECORDING, EXTERNAL, EXTERNAL_UNKNOWN, HUNT_PILOT, IN_SERVICE, INTERNAL, MONITORING_TARGET, NO_RECORDING, OUT_OF_SERVICE, RINGER_DEFAULT, RINGER_DISABLE, RINGER_ENABLE, SELECTIVE_RECORDING, UNKNOWN
Modifier and Type | Method and Description |
---|---|
javax.telephony.Connection[] |
connectIntercom(javax.telephony.Terminal terminal,
java.lang.String targetNumber)
Places an intercom call from an originating intercom address to a destination intercom
address.
|
java.lang.String |
getDefaultIntercomTargetAsciiLabel()
Returns the default intercom target label that is configured through Unified CM
administration.
|
java.lang.String |
getDefaultIntercomTargetNumber()
Returns the default intercom target DN that is configured through Unified CM administration.
|
java.lang.String |
getDefaultIntercomTargetUnicodeLabel()
Returns the default intercom target label that is configured through Unified CM
administration.
|
java.lang.String |
getIntercomTargetAsciiLabel()
Returns the current intercom target label that the application set.
|
java.lang.String |
getIntercomTargetNumber()
Returns the current intercom target DN that the application set.
|
java.lang.String |
getIntercomTargetUnicodeLabel()
Returns the current intercom target Unicode label that the application set.
|
boolean |
isIntercomTargetSet()
Returns true if an application has overridden the current value, or false if the current
value matches the default value configured in the database
|
void |
resetIntercomTarget()
Resets the intercom target DN, intercom target label, and intercom target Unicode label to
their default values.
|
void |
setIntercomTarget(java.lang.String targetDN,
java.lang.String targetAsciiLabel,
java.lang.String targetUnicodeLabel)
Sets the intercom target DN, intercom target label, and intercom target Unicode label that
appear next to the intercom line on the phone.
|
clearCallConnections, createPersistentCall, getAddressCallInfo, getAsciiLabel, getAutoAcceptStatus, getAutoAnswerStatus, getBusyTrigger, getButtonPosition, getFilter, getInServiceAddrTerminals, getMaxCalls, getPartition, getPersistentConnection, getPickupGroup, getRecordingConfig, getRegistrationState, getRestrictedAddrTerminals, getState, getType, getUnicodeLabel, getVoiceMailPilot, isRestricted, setAutoAcceptStatus, setFilter, setMessageSummary, setMessageSummary, setMessageWaiting, setRingerStatus, startAnnouncement
addCallObserver, addObserver, getAddressCapabilities, getCallObservers, getCapabilities, getConnections, getName, getObservers, getProvider, getTerminals, removeCallObserver, removeObserver
getObject, setObject
void setIntercomTarget(java.lang.String targetDN, java.lang.String targetAsciiLabel, java.lang.String targetUnicodeLabel) throws javax.telephony.InvalidPartyException, javax.telephony.InvalidStateException
targetDN
- Destination DN for the intercom calltargetAsciiLabel
- ASCII display label shown next to the intercom line on the phonetargetUnicodeLabel
- Unicode display label shown on the phonejavax.telephony.InvalidPartyException
- The target DN is not a valid number.javax.telephony.InvalidStateException
- The address, terminal, or provider is not in service.boolean isIntercomTargetSet()
void resetIntercomTarget() throws javax.telephony.InvalidPartyException, javax.telephony.InvalidStateException
javax.telephony.InvalidPartyException
javax.telephony.InvalidStateException
java.lang.String getIntercomTargetNumber()
java.lang.String getIntercomTargetAsciiLabel()
java.lang.String getIntercomTargetUnicodeLabel()
java.lang.String getDefaultIntercomTargetNumber()
java.lang.String getDefaultIntercomTargetAsciiLabel()
java.lang.String getDefaultIntercomTargetUnicodeLabel()
javax.telephony.Connection[] connectIntercom(javax.telephony.Terminal terminal, java.lang.String targetNumber) throws javax.telephony.ResourceUnavailableException, javax.telephony.InvalidPartyException, javax.telephony.InvalidArgumentException, javax.telephony.InvalidStateException, javax.telephony.PrivilegeViolationException
javax.telephony.InvalidPartyException
- The target DN is not a valid number.javax.telephony.InvalidArgumentException
- The address is not a CiscoIntercomAddress or the terminal is not a Terminal.javax.telephony.InvalidStateException
- The address, terminal, or provider is not in service.javax.telephony.ResourceUnavailableException
- A resource is not available to complete the operation.javax.telephony.PrivilegeViolationException
- The application does not have sufficient privileges to execute this operation.